Make 'Ok' work for the file chooser entry
authorFederico Mena Quintero <federico@novell.com>
Wed, 26 Mar 2008 20:22:50 +0000 (20:22 +0000)
committerFederico Mena Quintero <federico@src.gnome.org>
Wed, 26 Mar 2008 20:22:50 +0000 (20:22 +0000)
commit00b34c0b3d6912f88a67c1c9a860cbca42484e6e
treef93caf3a3334420e93ccc2896b3764cb6e3c89fe
parent9d8b846e8088676f3c47d39546d883109a7bdec3
Make 'Ok' work for the file chooser entry
2008-03-26  Federico Mena Quintero  <federico@novell.com>

* gtk/gtkfilechooserentry.c (commit_completion_and_refresh): New
helper function; factored out from the functions that commit the
current suggested autocompletion and that refresh the entry's paths.
(gtk_file_chooser_entry_activate): Use commit_completion_and_refresh().
(_gtk_file_chooser_entry_get_file_part): Likewise.
(_gtk_file_chooser_entry_get_current_folder): Likewise.  This
makes the entry have the correct paths when *not* using any form
of completion (and makes the file chooser work when clicking the
OK button).

Signed-off-by: Federico Mena Quintero <federico@gnu.org>
svn path=/trunk/; revision=19937
ChangeLog
gtk/gtkfilechooserentry.c